export function debounce(fn, duration = 1000) { // 防抖
  let timer = 0
  return function (...arge) {
    let _self = this
    clearTimeout(timer)
    timer = setTimeout(() => {
      fn.apply(_self, arge)
    }, duration)
  }
}